(require-package 'web-mode)
(require-package 'php-mode)
(require-package 'jade-mode)
;; 引入javascript配置 js2-mode
(require 'init-javascript)
(setq auto-mode-alist
      (cons '("\\.\\(html\\|htm\\)\\'" . web-mode) auto-mode-alist))
(setq auto-mode-alist
      (cons '("\\.\\(php\\|php5\\)\\'" . php-mode) auto-mode-alist))
(setq auto-mode-alist
      (cons '("\\.\\(styl\\|pug\\)\\'" . jade-mode) auto-mode-alist))

(if (equal system-type 'windows-nt)
		(message "window not vue-mode")
	(progn
		(require-package 'vue-mode)
		(setq auto-mode-alist
					(cons '("\\.\\(vue\\)\\'" . vue-mode) auto-mode-alist)))
	(add-hook 'vue-mode-hook (lambda () (progn
																				(setq mode-name "VUE")
																				;; 不使用tab缩进
																				(setq indent-tabs-mode nil)))))
(provide 'init-web)
